package com.scs.application.modules.base.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "供方人员表")
@TableName("base_supplier_staff")
public class SupplierStaff extends DataEntity {

    @EntityFieldAnnotation(
            text = "供应商id",
            type = EntityFieldType.LONG,
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String supplierId;


    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "名称",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String name;

    @EntityFieldAnnotation(
            text = "助记码",
            length = "50",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String namePy;

    @EntityFieldAnnotation(
            text = "0:正常 1：禁用",
            length = "",
            not_null = false,
            default_value = "0",
            comment = ""
    )
    private Integer flagActive;

    @EntityFieldAnnotation(
            text = "备注",
            length = "255",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String remark;

    /**
     * 供应商名称
     */
    @TableField(exist = false)
    private String supplierName;

}
